package com.xbongbong.admin.domain.dao;

import com.xbongbong.admin.domain.entity.MirrorLowCodeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface MirrorLowCodeDao {

    Long insert(MirrorLowCodeEntity entity);

    void insertBatch(List<MirrorLowCodeEntity> list);

    MirrorLowCodeEntity getByKey(@Param("key") Long key);

    Integer update(MirrorLowCodeEntity entity);

    List<MirrorLowCodeEntity> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);
}